<template>
  <div>
    <div class="box">
        <!-- 头部 -->
      <div class="w-header">
        <div class="w-xhead">
          <i @click="gotolink"></i>
          <span>关注公众号</span>
        </div>
      </div>
      <div class="main">
          <ul>
              <li></li>
              <li>￥{{money}}</li>
              <li>我的金额</li>
              <li @click="wShow()">提现</li>
          </ul>
      </div>
   
    </div>
     <!-- 遮罩 -->
      <div class="wzhezhao" v-show="bol">
        <div class="wzhe">
          <h3>请选择提现方式</h3>
          <div>
            <ul>
              <li v-for="(item,v) in arr" :key="v" @click="chang(v)">
                <i :class="{'listicon':int==v,'listicon1':int!=v}"></i>
                <div class="listtit">提现到{{item.name}}</div>
                <div class="listcont">（提现到{{item.name}}，手续费率为{{item.lv}}，额外扣除10%服务费
{{item.day}}个工作日到账。）</div>
              </li>
            </ul>
            <div class="btn">
                <div class="btn1" @click="wti(money)">提现</div>
                <div class="btn2" @click="wShow()">取消</div>
            </div>
          </div>
          
        </div>
      </div>
  </div>
</template>

<script>
export default {
  name:'Account',
  data(){
    return{
      bol:false,
      money:2000,
      arr:[{ name:'微信',lv:'0.29',day:'2-3'},{name:'支付宝',lv:'0.36',day:'4-6'}],
      int:'',
    }
  },
  methods:{
    // 回到首页
    gotolink(){
        //点击跳转至上次页面
        //this.$router.go(-1)
        //指定跳转地址
        this.$router.replace('/login');
    },
    // 真正提现
    wti(m){
console.log(m);
    },

    // 遮罩层显示隐藏
    wShow(){
      this.bol=!this.bol;
    },
    // 提现方式
    chang(v){
      console.log(v);
      this.int=v;
    },
    
  }

}
</script>

<style scoped>
.box{
  position: relative;
  height: 100%;
  width: 100%;
  z-index: 1;
}
/* 遮罩 */
.wzhezhao{
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: rgba(0,0,0,0.3);
  height: 100%;
  width: 100%;
  z-index: 4;

}
.wzhe{
  width: 100%;
  height: 100%;
  background-color: #fff;
  position: absolute;
  bottom:0;
  left:0;
  height: 60rem;
}
.wzhe>h3{
  font-weight: normal;
  font-size: 3rem;
  color: #ffff;
  height:8rem;
  line-height: 8rem;
  background-color: #e53e42;
  text-align: center;

}
.wzhe>div{
  width: calc(100% - 4rem);
  margin: 0 2rem;
  color: #4c4c4c;
  text-align: left;
  /* display: flex; */
}
.wzhe>div ul{
  margin-bottom: 4.8rem;
}
.wzhe>div ul li{
  height: 12.3rem;
  position: relative;
  padding-top: 3.7rem;
  /* outline: 1px solid #ccc; */
}

.listicon{
  position: absolute;
  top: 4rem;
  display: block;
  height: 3rem;
  width: 3rem;
  background: url(../../assets/user/g-gui.png) no-repeat 0 0 ;

}
.listicon1{
  position: absolute;
  top: 4rem;
  display: block;
  height: 3rem;
  width: 3rem;
  background: url(../../assets/user/g-gui.png) no-repeat -3.6rem 0 ;
  /* background-color: #f0f; */
}
.listtit{
  padding-left: 5rem;
  font-size: 3rem;
}
.listcont{
  padding-left: 4.2rem;
  font-size: 2.4rem;
} 
/* 按钮 */
.btn{
  width: calc(100% -24rem);
  margin: 0 12rem;
  font-size: 2.4rem;
  text-align: center;
}
.btn1{
  color: #fff;
  height: 7.2rem;
  width: 100%;
  background-color: #61a7ea;
  line-height: 7.2rem;
}
.btn2{
  height: 7.2rem;
  width: 100%;
  line-height: 7.2rem;
  color: #4c4c4c;
}


/* main */
.main{
  margin-top: 9.6rem;
  height: 100%;
  position: relative;
  z-index: 0;
}
.main ul{
    padding-top: 7.2rem;
}
.main ul li:nth-child(1){
    height: 17.8rem;
    width: 22.4rem;
    position: relative;
    left: 50%;
    transform: translateX(-11.2rem);
    background: url(../../assets/user/Do.png) no-repeat 0 0;
    margin-bottom: 1.4rem;
}
.main ul li:nth-child(2){
    font-size: 3rem;
    color: #e53e42;
    line-height: 5.4rem;
}
.main ul li:nth-child(3){
    font-size: 3rem;
    color: #4c4c4c;
    line-height: 5.4rem;
    margin-bottom: 7.2rem;
}
.main ul li:nth-child(4){
    width: calc(100%  - 24rem);
    margin: 0 12rem 63rem;
    font-size: 3rem;
    color: #4c4c4c;
    line-height: 7.2rem;
    background-color: #61a7ea;
    height: 7.2rem;
    color: #fff;
  
}
/* 头部 */
.w-header{
  background-color: #e53e42;
  width: 100%;
  height: 9.6rem;
  color: #fff;
  font-size: 3.6rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}
.w-xhead{
  height:9.6rem;
  width:calc(100% - 4rem) ;
  padding: 0 2rem;
  line-height: 9.6rem;
  position: relative;
}
.w-xhead i{
    height: 3.8rem;
    width: 3.8rem;
    position: absolute;
    top: 50%;
    left: 1.3rem;
    transform: translateY(-1.9rem);
    background: url(../../assets/user/user-wback.png) no-repeat 0 0;
}
/* 头部 */
.w{
  width: calc(100% - 4rem);
  padding: 0 2rem;
}
</style>